const state={
       roleData:[],
//       selectData:[
    
//       ],
//       selectAllData:[]
}

const getters={

   
}

const  mutations={

//       select(state:any,selectData:any){
//             state.selectData=selectData

//       },
//       selectAll(state:any,selectAllData:any){
//               state.selectAllData=selectAllData  
//       },
      roleData(state:any,roleData:any){
     
            state.roleData=roleData
       //      console.log(typeof roleData)
      }
        
}

const actions={
       //获取所有表格信息
       roleData(context:any,roleData:any){
               context.commit("roleData",roleData)
       }
       ,
//     select(context:any,selectData:any){
  
//           context.commit("select",selectData)
//     } , 
    //全选
// selectAll(context:any,selectAllData:any){
   
//        context.commit("selectAll",selectAllData)
// }
      
}

export default{
       state,
       mutations,
       actions,
       getters
}